/*    */ package com.zimbra.cs.account.ldap.upgrade;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.util.StringUtil;
/*    */ import com.zimbra.cs.account.Config;
/*    */ import com.zimbra.cs.account.ldap.LdapProv;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import java.util.Set;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class BUG_55649
/*    */   extends UpgradeOp
/*    */ {
/*    */   void doUpgrade()
/*    */     throws ServiceException
/*    */   {
/* 32 */     upgradeZimbraGalLdapAttrMap();
/*    */   }
/*    */   
/*    */   private void upgradeZimbraGalLdapAttrMap() throws ServiceException
/*    */   {
/* 37 */     String valueToAdd = "binary zimbraPrefMailSMIMECertificate,userCertificate,userSMIMECertificate=SMIMECertificate";
/*    */     
/* 39 */     Config config = this.prov.getConfig();
/*    */     
/* 41 */     Set<String> curValues = config.getMultiAttrSet("zimbraGalLdapAttrMap");
/* 42 */     if (curValues.contains(valueToAdd)) {
/* 43 */       return;
/*    */     }
/*    */     
/* 46 */     Map<String, Object> attrs = new HashMap();
/* 47 */     StringUtil.addToMultiMap(attrs, "+zimbraGalLdapAttrMap", valueToAdd);
/*    */     
/* 49 */     modifyAttrs(config, attrs);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/ldap/upgrade/BUG_55649.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */